package com.yc.jpyy.question.dao;

import java.util.List;
import java.util.Map;

import org.springframework.dao.DataAccessException;

import com.yc.jpyy.base.dao.BaseDao;
public interface QuestionDao extends BaseDao {
	
	int addQuestion(Map<String, Object> paramsMap)throws DataAccessException;	
	
	int addQuestionItem(List<Map<String,Object>> questionItemList)throws DataAccessException;
	
	List<Map<String,Object>> selectQuestionByPage(Map<String, Object> paramsMap)throws DataAccessException;
	
	List<Map<String,Object>> getQuestionItems(Map<String, Object> paramsMap)throws DataAccessException;
	
	int selectQuestionCount(Map<String, Object> paramsMap)throws DataAccessException;	
	
	int updateQuestion(Map<String, Object> paramsMap)throws DataAccessException;
	
	int updateQuestionItem(List<Map<String,Object>> paramsMap)throws DataAccessException;
     
    int delQuestion(Map<String, Object> paramsMap)throws DataAccessException;
    
    int delQuestionItem(Map<String, Object> paramsMap)throws DataAccessException;
    
    int isOnQuestionsName(Map<String, Object> paramsMap)throws DataAccessException;
    
    List<Map<String,Object>> selectQuestionItemByID(Map<String, Object> paramsMap)throws DataAccessException;

}
